
<div class="content floatleft">
<div id="submit">
<h1>{#PLIGG_Visual_Submit2_Header#}</h1>
{checkActionsTpl location="tpl_pligg_submit_step2_start"}
	{if $Submit_Show_URL_Input eq 1}
		<h2>{#PLIGG_Visual_Submit2_Source#}</h2>
			<label>{#PLIGG_Visual_Submit2_NewsURL#}: </label>
			<a href="{$submit_url}" class="simple">{$submit_url}</a><br /><br/>
			{if $submit_url_title neq "1"}
				<label>{#PLIGG_Visual_Submit2_URLTitle#}: </label>{$submit_url_title}
			{/if}
		</fieldset>
	{/if}
<br />
	<form action="{$URL_submit}" method="post" name="thisform" id="thisform" enctype="multipart/form-data" >

		<label>{#PLIGG_Visual_Submit2_Title#}(<span class="red">*</span>): </label>{#PLIGG_Visual_Submit2_TitleInstruct#}<br/>
		<input type="text" id="title" class="text" name="title" value="{if $submit_title}{$submit_title}{else}{$submit_url_title}{/if}" size="80" maxlength="120" />

		<br /><br/>

		<label>{#PLIGG_Visual_Submit2_Category#}(<span class="red">*</span>): </label>{#PLIGG_Visual_Submit2_CatInstruct#}<br/>
		<select name="category">
			<option value = "">{#PLIGG_Visual_Submit2_CatInstructSelect#}
			{section name=thecat loop=$submit_cat_array}
			   <option value = "{$submit_cat_array[thecat].auto_id}" {if $submit_cat_array[thecat].auto_id == $submit_category}selected{/if}>
					  {if $submit_cat_array[thecat].spacercount lt $submit_lastspacer}{$submit_cat_array[thecat].spacerdiff|repeat_count:''}{/if}
					  {if $submit_cat_array[thecat].spacercount gt $submit_lastspacer}{/if}
					  {$submit_cat_array[thecat].spacercount|repeat_count:'&nbsp;&nbsp;&nbsp;'}
					  {$submit_cat_array[thecat].name}
					  &nbsp;&nbsp;&nbsp;
					  {assign var=submit_lastspacer value=$submit_cat_array[thecat].spacercount}
			  </option>
			{/section}
		</select>

		<br/><br/>


		{checkActionsTpl location="tpl_header_admin_main_comment_subscription"}
		
		{*{checkActionsTpl location="tpl_timestamp_stories"}*}
		
		{if $enable_tags}
			<label>{#PLIGG_Visual_Submit2_Tags#}: </label>
			{#PLIGG_Visual_Submit2_Tags_Inst1#} {#PLIGG_Visual_Submit2_Tags_Example#} <em>{#PLIGG_Visual_Submit2_Tags_Inst2#}</em><br/>
			<input type="text" id="tags" name="tags" value="{$tags_words}" size="80" maxlength="40" /><br /><br />
			
		{/if}

		{checkActionsTpl location="tpl_pligg_submit_step2_middle"}

		<label>{#PLIGG_Visual_Submit2_Description#}(<span class="red">*</span>): </label>{#PLIGG_Visual_Submit2_DescInstruct#}

		<br/><textarea name="bodytext" class="bodytext" rows="20" cols="120" id="bodytext" WRAP=SOFT onkeyup="if(!this.form.summarycheckbox || !this.form.summarytext) return; if(this.form.summarycheckbox.checked == false) {ldelim}this.form.summarytext.value = this.form.bodytext.value.substring(0, {$StorySummary_ContentTruncate});{rdelim}textCounter(this.form.summarytext,this.form.remLen, {$StorySummary_ContentTruncate});">{$submit_content}</textarea><br />
		{literal}
<script type="text/javascript">
//CKEditor 编辑器

  CKEDITOR.replace( 'bodytext',
    {
        toolbar :
        [
    ['Source','Preview'],
	    ['Undo','Redo','Find','Replace'],	
    ['Cut','Copy','Paste','PasteText'],
    ['Bold','Italic','Underline'],
    ['NumberedList','BulletedList','Blockquote'],
    ['JustifyLeft','JustifyCenter','JustifyRight'],
    '/',
    ['Styles','Format','Font','FontSize'],
    ['TextColor','BGColor'],
  ['Link','Unlink','Image','Flash','Table','HorizontalRule'],
        ],		
		height:'400px'
    });  
</script>
{/literal}

{*
		<div id="sumtrack">
		{if $SubmitSummary_Allow_Edit eq 1}
		<label>{#PLIGG_Visual_Submit2_Summary#}: </label>{#PLIGG_Visual_Submit2_SummaryInstruct#}{#PLIGG_Visual_Submit2_SummaryLimit#}{$StorySummary_ContentTruncate}{#PLIGG_Visual_Submit2_SummaryLimitCharacters#}<br />
			<input type="checkbox" name="summarycheckbox" id="summarycheckbox" onclick="SetState(this, this.form.summarytext)"> {#PLIGG_Visual_Submit2_SummaryCheckBox#}
			{if $Story_Content_Tags_To_Allow eq ""}
				<br /><strong>{#PLIGG_Visual_Submit2_No_HTMLTagsAllowed#} </strong>{#PLIGG_Visual_Submit2_HTMLTagsAllowed#}
			{else}
				<br />{#PLIGG_Visual_Submit2_HTMLTagsAllowed#}: {$Story_Content_Tags_To_Allow}
			{/if}
			<br/><textarea disabled="true" name="summarytext" class="summarytext" rows="5" cols="60" id="summarytext" WRAP=SOFT onKeyDown="textCounter(this.form.summarytext,this.form.remLen, {$StorySummary_ContentTruncate});">{$submit_summary}</textarea><br />
			<input readonly type=text name=remLen size=3 maxlength=3 value="400">{#PLIGG_Visual_Submit2_SummaryCharactersLeft#}
			{if $Spell_Checker eq 1}<input type="button" name="spelling" value="{#PLIGG_Visual_Check_Spelling#}" class="submit" onClick="openSpellChecker('summarytext');"/>{/if}
			<br /><br />
		{/if}

		</div>
	*}	
	<label for="url">{#PLIGG_Visual_Submit1_NewsURL#}:</label><br>
		<input type="text" name="url" id="url" value="http://" size="100" onFocus="javascript:this.select()"/>	<br /><br/>	
		{if isset($register_step_1_extra)}
			<br />
			{$register_step_1_extra}
		{/if}		
		{checkActionsTpl location="submit_step_2_pre_extrafields"}
		{include file=$tpl_extra_fields.".tpl"}<br />
		<div class="subBtn"><input class="commentBtn" type="submit" value="{#PLIGG_Visual_Submit2_Continue#}" /></div>
		{checkActionsTpl location="tpl_pligg_submit_step2_end"}
		<input type="hidden" name="phase" value="2" />
		<input type="hidden" name="randkey" value="{$randkey}" />
		<input type="hidden" name="id" value="{$submit_id}" />
	</form>
</fieldset>
</div>
</div>
<div class="sidebar">
<h2>{#PLIGG_Visual_Submit1_Instruct#}:</h2>
{checkActionsTpl location="tpl_pligg_submit_step1_start"}
<ul class="instructions">
	{if #PLIGG_Visual_Submit1_Instruct_1A# ne ''}<li><strong>{#PLIGG_Visual_Submit1_Instruct_1A#}:</strong> {#PLIGG_Visual_Submit1_Instruct_1B#}</li>{/if}
	{if #PLIGG_Visual_Submit1_Instruct_2A# ne ''}<li><strong>{#PLIGG_Visual_Submit1_Instruct_2A#}:</strong> {#PLIGG_Visual_Submit1_Instruct_2B#}</li>{/if}
	{if #PLIGG_Visual_Submit1_Instruct_3A# ne ''}<li><strong>{#PLIGG_Visual_Submit1_Instruct_3A#}:</strong> {#PLIGG_Visual_Submit1_Instruct_3B#}</li>{/if}
	{if #PLIGG_Visual_Submit1_Instruct_4A# ne ''}<li><strong>{#PLIGG_Visual_Submit1_Instruct_4A#}:</strong> {#PLIGG_Visual_Submit1_Instruct_4B#}</li>{/if}
	{if #PLIGG_Visual_Submit1_Instruct_5A# ne ''}<li><strong>{#PLIGG_Visual_Submit1_Instruct_5A#}:</strong> {#PLIGG_Visual_Submit1_Instruct_5B#}</li>{/if}
	{if #PLIGG_Visual_Submit1_Instruct_6A# ne ''}<li><strong>{#PLIGG_Visual_Submit1_Instruct_6A#}:</strong> {#PLIGG_Visual_Submit1_Instruct_6B#}</li>{/if}
	{if #PLIGG_Visual_Submit1_Instruct_7A# ne ''}<li><strong>{#PLIGG_Visual_Submit1_Instruct_7A#}:</strong> {#PLIGG_Visual_Submit1_Instruct_7B#}</li>{/if}
</ul>
</div>